package com.cell.pojo.entity.order;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author cloudJiang
 * @since 2022-06-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_order_detail")
public class OrderDetail implements Serializable {

    private static final long serialVersionUID=1L;

    private Long id;

    /**
     * 物品名称id
     */
    private Integer recNameId;

    /**
     * 物品类型id
     */
    private Integer recTypeId;

    /**
     * 物品重量 单位kg
     */
    private BigDecimal weight;

    /**
     * 物品价格 重量乘以单价乘以折扣，单价在物品表中获取
     */
    private BigDecimal totalPrice;

    /**
     * 该订单折扣。默认为1，即无折扣
     */
    private BigDecimal discount;


}
